from django.views.generic.list import ListView
from ximport.models import UploadFile
from django.conf.urls.defaults import patterns
from django.contrib.auth.decorators import login_required

class ListUploadFileView(ListView):
    model = UploadFile
    template_name = "tradinglist/uploadfile_list.html"

urlpatterns = patterns(
    "tradinglist.views"
    , (r"^$", login_required(ListUploadFileView.as_view()))
    , (r"(\d+)/monthly_stat/$", "monthly_stat")
    , (r"(\d+)/monthly_info/$", "monthly_info")
)
